package org.qiyu.live.msg.provider.service;

import org.qiyu.live.msg.dto.MsgCheckDTO;
import org.qiyu.live.msg.enums.MsgSendResultEnum;

/**
 * @ClassName: ISmsService
 * @Description: TODO
 * @Author zhangguangyan
 * @Date 2023/08/26/ 19:41:23
 * @Version 1.0
 */
public interface ISmsService {

    /**
     * @Params @param phone 电话
     * @Return @return {@link MsgSendResultEnum }
     * @Description 发送短信验证码
     * @Author zhangguangyan
     * @Date 2023-08-26 19:42:56
     */

    MsgSendResultEnum sendLoginCode(String phone);

    /**
     * @param code 代码
     * @Params @param phone 电话
     * @Return @return {@link MsgCheckDTO }
     * @Description 检查登录验证码
     * @Author zhangguangyan
     * @Date 2023-08-26 19:43:26
     */

    MsgCheckDTO checkLoginCode(String phone, Integer code);

    void insertOne(String phone,Integer code);

}
